package com.niren.relay.netty;

import io.netty.channel.ChannelHandlerContext;

public class DeviceMessage {
	public ChannelHandlerContext ctx;
	
	public String msg;
	
	public String GetId() {
		return GetData(this.msg);
	}
	
	public String GetOutState(){
		return GetData(this.msg);
	}
	
	public String GetData(String msgStr) {
		String Data = msgStr.split("=")[1];
		return Data.split("\r")[0];
	}
}
